package ru.niir.goodfil.audit.domain;

import ru.niir.goodfil.audit.domain.enums.OrderUIBuildAction;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * Сборка заказа на складе
 */
@Entity
public class OrderUIBuildEvent extends Event {

    @Enumerated(EnumType.STRING)
    private OrderUIBuildAction action;

    @Column(length = 10)
    private String orderId;

    @Column(length = 10)
    private String c1Num;

    @Column(length = 50)
    private String creationDate;

    @Column(length = 50)
    private String deliveryDate;

    @Column(length = 10)
    private String managerId;

    @Column(length = 100)
    private String managerName;

    @Column(length = 10)
    private String clientId;

    @Column(length = 100)
    private String clientName;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getC1Num() {
        return c1Num;
    }

    public void setC1Num(String c1Num) {
        this.c1Num = c1Num;
    }

    public String getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(String creationDate) {
        this.creationDate = creationDate;
    }

    public String getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(String deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public OrderUIBuildAction getAction() {
        return action;
    }

    public void setAction(OrderUIBuildAction action) {
        this.action = action;
    }

    @Override
    public String toString() {
        return "OrderUIBuildEvent{" +
                "action=" + action +
                ", orderId='" + orderId + '\'' +
                ", c1Num='" + c1Num + '\'' +
                ", creationDate='" + creationDate + '\'' +
                ", deliveryDate='" + deliveryDate + '\'' +
                ", managerId='" + managerId + '\'' +
                ", managerName='" + managerName + '\'' +
                ", clientId='" + clientId + '\'' +
                ", clientName='" + clientName + '\'' +
                '}';
    }
}
